import request from '@/utils/request'

//获取抢单列表
export const grabLists = (data,sign) => {
	return request({
		method: 'GET',
		 url: '/transminApi/orderApi/order/list',
		 header: {
		 	'Sign': sign
		 },
	}, data);
}

// 抢单
export const grabTo = (data,sign) => {
	return request({
		method: 'get',
		 url: '/transminApi/orderApi/order/takeOrders',
		 header: {
		 	'Sign': sign
		 },
	}, data);
}

// 抢单报价
export const grabInfo = (data,sign) => {
	return request({
		method: 'GET',
		 url: `/transminApi/orderApi/order/getOrder`,
		 header: {
		 	'Sign': sign
		 },
	}, data);
}

// 首页抢单列表
export const grabOrderList = (data,sign) => {
	return request({
		method: 'GET',
		 url: `/transminApi/orderApi/order/getHomeList`,
		 header: {
		 	'Sign': sign
		 },
	}, data);
}